﻿#include "mainwindow.h"
#include <QApplication>
#include <QFile>
#include <QDebug>
#include "QStyleFactory"
#include <QDate>


#define VERSION QString("1.0.2")
#define AUTHOR QString("Hydra")



int main(int argc, char *argv[])
{
    qputenv("QT_STYLE_OVERRIDE","");

    QApplication a(argc, argv);

    QString tStyleSheet;

    QFile tConfigFile(":/QSS/skin.qss");
    tConfigFile.open(QFile::ReadOnly);

    if(tConfigFile.isOpen())
    {
        tStyleSheet = QLatin1String(tConfigFile.readAll());
        a.setStyleSheet(tStyleSheet);
        tConfigFile.close();
    }

    MainWindow w;
    w.show();

    qDebug() << "Software Version:" << VERSION;
    qDebug() << "QT_Version:" << QString(QT_VERSION_STR);
    qDebug() << "Release Date:" << QDate::currentDate().toString("yyyy-MM-dd");
    qDebug() << "Author:" << AUTHOR;

    return a.exec();
}
